<include file="Common/header" />
<title>栏目管理</title>
<style>
.norag { border: none !important; font-weight: normal !important }
</style>
</head>
<body>
<nav class="breadcrumb"> <i class="Hui-iconfont"></i>{:location();} <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont"></i></a></nav>
<div class="pd-20">
  <div class="main-title" style="margin-top:-10px;">
    <h4>配置管理 [
    
    <a href="{:U('Config/config')}" <if condition="$id eq -1"> class='current' </if> >全部</a>&nbsp;
    <volist name="Group" id="vo">
    <a href="{:U('Config/config',array('id'=>$key))}" <if condition="$id eq $key"> class='current' </if> >{$vo}</a>&nbsp;
    </volist>
   ]
    </h4>
  </div>
  <div class="cf" style="overflow:hidden; margin-top:15px;"> 
  <a class="btn btn-success radius" href="{:U('Config/config_edit')}">新 增</a>
    <button class="btn btn-danger radius configdel del postajaxids_ldh" _href="{:U('Config/config_del')}" msg="确定要批量删除!"  target-form="ids">删 除</button>
     
    <!-- 高级搜索 -->
    <div class="f-r">
      <div class="sleft" style=" width:400px;"> 
      <a class=" f-r btn btn-secondary search"> <i class="Hui-iconfont"> &#xe665;</i> </a>
        <input type="text"  class="input-text f-r "  id="search" value="" style=" width:250px;" placeholder="请输入配置名称">
        
        </div>
        
    </div>
    
    
    
  </div>
  <div class="table table-border table-bg table-hover"  style="margin:15px 0">
    <table>
      <thead>
        <tr>
          <th class="row-selected"> 
          <input class="checkbox check-all" type="checkbox"> 
          </th>
          <th>ID</th>
          <th>名称</th>
          <th>标题</th>
          <th>分组</th>
          <th>类型</th>
           <th>状态</th>
          <th>操作</th>
        </tr>
      </thead>
      <tbody>
       <volist name="list" id="vo">
        <tr>
          <td><input class="ids_ldh row-selected" type="checkbox"  name="id[]" value="{$vo['id']}"></td>
          <td>87</td>
          <td><a href="">{$vo['name']}</a></td>
          <td>{$vo['title']}</td>
          <td><span class="label label-secondary  radius" title="{$Group[$vo['group']]} "> {$Group[$vo['group']]}  </span></td>
          <td> {$config_type[$vo['type']]} </td>
           <td><if condition="$vo['status'] eq 1">  <span class="label label-success   radius" title="启用"> 启用 </span> <else />  <span class="label label-warning   radius" title="禁用"> 禁用 </span> </if> </td>
          <td>
           <a title="编辑" _href="{:U('Config/config_edit',array('id'=>$vo['id']));}" onClick="Hui_admin_tab(this)" href="javascript:;" data-title="编辑配置字段" class="btn btn-primary radius size-S">编辑</a>
           <a class="btn btn-danger radius size-S getajax_ldh del" title="删除" msg="确定要删除吗?" _href="{:U('Config/config_del',array('id'=>$vo['id']));}">删除</a>
           
           </td>
        </tr>
        </volist>
        
      </tbody>
    </table>
    
    
  <div class="pages">
  {$Page}
  </div>
  
  
  </div>
</div>
 
<script>
$(function(){
	$(".check-all").click(function(){ 
	
			if($(".row-selected").is(':checked')){ 
				$(".row-selected").attr('checked','true');
			}else{
				$(".row-selected").removeAttr('checked');
				
				}
		
		});
	$(".search").click(function(){
		location.href="{:U('Config/config')}?keywords="+$('#search').val();
		});
	});

</script>
</body>
</html>